package o;

import android.content.Context;
import android.content.res.ColorStateList;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;

@RequiresApi(21)
public class dl implements dm {
    public void ˋ(do doVar, Context context, ColorStateList colorStateList, float f, float f2, float f3) {
        doVar.ˎ(new du(colorStateList, f));
        View ˊ = doVar.ˊ();
        ˊ.setClipToOutline(true);
        ˊ.setElevation(f2);
        ˎ(doVar, f3);
    }

    public void ˏ(do doVar, float f) {
        ʻ(doVar).ˏ(f);
    }

    public void ˎ() {
    }

    public void ˎ(do doVar, float f) {
        ʻ(doVar).ˋ(f, doVar.ˏ(), doVar.ˋ());
        ॱ(doVar);
    }

    public float ˋ(do doVar) {
        return ʻ(doVar).ॱ();
    }

    public float ˊ(do doVar) {
        return ˏ(doVar) * 2.0f;
    }

    public float ˎ(do doVar) {
        return ˏ(doVar) * 2.0f;
    }

    public float ˏ(do doVar) {
        return ʻ(doVar).ˏ();
    }

    public void ॱ(do doVar, float f) {
        doVar.ˊ().setElevation(f);
    }

    public void ॱ(do doVar) {
        if (doVar.ˏ()) {
            float ˋ = ˋ(doVar);
            float ˏ = ˏ(doVar);
            int ceil = (int) Math.ceil((double) dr.ˋ(ˋ, ˏ, doVar.ˋ()));
            int ceil2 = (int) Math.ceil((double) dr.ˎ(ˋ, ˏ, doVar.ˋ()));
            doVar.ॱ(ceil, ceil2, ceil, ceil2);
            return;
        }
        doVar.ॱ(0, 0, 0, 0);
    }

    public void ʽ(do doVar) {
        ˎ(doVar, ˋ(doVar));
    }

    public void ʼ(do doVar) {
        ˎ(doVar, ˋ(doVar));
    }

    public void ˏ(do doVar, @Nullable ColorStateList colorStateList) {
        ʻ(doVar).ˏ(colorStateList);
    }

    private du ʻ(do doVar) {
        return (du) doVar.ॱ();
    }
}
